/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.univcasa.biz.impl;

import com.univcasa.biz.AccountSearcher;
import com.univcasa.db.model.Criteres;
import com.univcasa.managing.ApogeeStudentsManager;
import com.univcasa.managing.ComptesStudentsManager;
import com.univcasa.managing.LdapDBManager;
import com.univcasa.managing.impl.ApogeeStudentsManagerImpl;
import com.univcasa.managing.impl.ComptesStudentsManagerImpl;
import com.univcasa.managing.impl.LdapDBManagerImpl;
import java.util.List;

/**
 *
 * @author issam
 */
public class AccountSearcherImpl implements AccountSearcher {

    private ComptesStudentsManager stdManager;
    private ApogeeStudentsManager apoManager;
    private LdapDBManager ldapManager;

    public AccountSearcherImpl() {
        stdManager = new ComptesStudentsManagerImpl();
        apoManager = new ApogeeStudentsManagerImpl();
        ldapManager = new LdapDBManagerImpl();
    }

    public List searchStdsInApogeeBy(Criteres criteres) {
        return apoManager.searchStdsFromApogeeByCriteria(criteres);
    }

    public List searchStdsInLdapBy(Criteres criteres) {
        return ldapManager.searchStdsByCriteres(criteres);
    }

    public List searchStdsInCmptsDBBy(Criteres criteres) {
        return stdManager.getListComptesStudentsByCriteria( criteres );
    }
}
